<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonModule for the canonical source repository
 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Guardadatos\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;

class IndexController extends AbstractActionController
{
    
    private $_capturaDato;
    
    public function getCapturaDato() {
        return $this->_capturaDato;
    }

    public function setCapturaDato($capturaDato) {
        $this->_capturaDato = $capturaDato;
    }

    public function indexAction()
    {
        
        return new ViewModel(array(
                                  'mensaje' => $this->getCapturaDato()));
        
    }

    public function fooAction()
    {
        // This shows the :controller and :action parameters in default route
        // are working when you browse to /module-specific-root/skeleton/foo
        return array();
    }
}
